<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:monet="http://monet.nag.co.uk/monet/ns" xmlns:xhtml="http://www.w3.org/1999/xhtml">
	<xsl:output method="xml"/>

	<xsl:template match="page">
		<article xmlns:ctx="http://www.mathdox.org/MathBook/Context" xmlns:fmt="http://www.mathdox.org/MathBook/Format" xmlns:c="jelly:core" xmlns:x="jelly:xml" xmlns:math="http://www.w3.org/1998/Math/MathML"
		         xmlns:mdf="http://www.mathdox.org/MathDox/Functions" xmlns:om="http://www.openmath.org/OpenMath" xmlns:q="http://www.mathdox.org/MathBook/Query" xmlns:userinput="http://www.mathdox.org/MathBook/Userinput"
		         xmlns:xforms="http://www.w3.org/2002/xforms" xmlns:xhtml="http://www.w3.org/1999/xhtml" xmlns:xi="http://www.w3.org/2001/XInclude" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
		         xmlns:monet="http://monet.nag.co.uk/monet/ns" version="5.0" xml:lang="en">

			<xsl:apply-templates/>
		</article>
	</xsl:template>


	<xsl:template match="categoryNote">
		<xsl:if test="./title">
			<formalpara>
				<title>
					<xsl:value-of select="./title"/>
				</title>
				<xsl:apply-templates/>
			</formalpara>
		</xsl:if>
	</xsl:template>

	<xsl:template match="category">
		<section>

			<xsl:apply-templates/>
		</section>
	</xsl:template>

	<xsl:template match="definition">
		<definition>
			<title>
				<xsl:value-of select="@name"/>
			</title>
			<xsl:apply-templates/>
		</definition>
	</xsl:template>


	<xsl:template match="dynamicFigure">
		<monet:query>
			<monet:classification>
				<monet:directive-type href="http://mathdox.org/phrasebook/geogebra#show"/>
			</monet:classification>
			<monet:body>
				<monet:output>
					<xhtml:attribute name="height" value="500"/>
					<xhtml:attribute name="width" value="800"/>
					<xhtml:attribute name="name" value="applet"/>
					<xhtml:param name="filename">
						<xsl:attribute name="value">
							<xsl:value-of select="@src"/>
						</xsl:attribute>
					</xhtml:param>
					<xhtml:param name="framePossible" value="false"/>
				</monet:output>
			</monet:body>
		</monet:query>
	</xsl:template>


	<xsl:template match="visualization">
		<xsl:apply-templates/>
	</xsl:template>

	<xsl:template match="naturalRepresentation">
		<para>
			<xsl:apply-templates/>
		</para>
	</xsl:template>

	<xsl:template match="formalDefinition">
		<formalpara>
			<title>
				<xsl:if test="//page/@language='english'">Formal definition</xsl:if>
				<xsl:if test="//page/@language='中文'">形式化定义</xsl:if>
			</title>
			<para>
				<xsl:apply-templates/>
			</para>
		</formalpara>
	</xsl:template>

	<xsl:template match="formalRepresentation">
		<fomalpara>
			<title>
				<xsl:if test="//page/@language='english'">Formal representation</xsl:if>
				<xsl:if test="//page/@language='中文'">形式化表示</xsl:if>
			</title>
			<para>
				<xsl:apply-templates/>
			</para>
		</fomalpara>
	</xsl:template>

	<xsl:template match="algebraicScript">
		<fomalpara>
			<title>
				<xsl:if test="//page/@language='english'">Algebraic Script</xsl:if>
				<xsl:if test="//page/@language='中文'">代数化脚本</xsl:if>
			</title>
			<para>
				<xsl:apply-templates/>
			</para>
		</fomalpara>
	</xsl:template>



	<xsl:template match="translationScript">
		<formalpara>
			<title>
				<xsl:if test="//page/@language='english'">Translation Script</xsl:if>
				<xsl:if test="//page/@language='中文'">翻译脚本</xsl:if>
			</title>
			<para>
				<xsl:apply-templates/>
			</para>
		</formalpara>
	</xsl:template>


	<xsl:template match="algebraicRepresentation">
		<formalpara>
			<title>
				<xsl:if test="//page/@language='english'">Algebraic representation</xsl:if>
				<xsl:if test="//page/@language='中文'">代数表示</xsl:if>
			</title>
			<para>
				<xsl:apply-templates/>
			</para>
		</formalpara>
	</xsl:template>

	<xsl:template match="nondegenerateCondition">
		<formalpara>
			<title>
				<xsl:if test="//page/@language='english'">NondegenerateCondition</xsl:if>
				<xsl:if test="//page/@language='中文'">非退化条件</xsl:if>
			</title>
			<para>
				<xsl:apply-templates/>
			</para>
		</formalpara>
	</xsl:template>

	<xsl:template match="coordinatize">
		<formalpara>
			<title>
				<xsl:if test="//page/@language='english'">Coordianize</xsl:if>
				<xsl:if test="//page/@language='中文'">坐标化</xsl:if>
			</title>
			<para>
				<xsl:apply-templates/>
			</para>
		</formalpara>
	</xsl:template>

	<xsl:template match="hypothesis">
		<formalpara>
			<title>
				<xsl:if test="//page/@language='english'">Hypothesis</xsl:if>
				<xsl:if test="//page/@language='中文'">假设</xsl:if>
			</title>
			<para>
				<xsl:apply-templates/>
			</para>
		</formalpara>
	</xsl:template>

	<xsl:template match="conclusion">
		<formalpara>
			<title>
				<xsl:if test="//page/@language='english'">Conclusion</xsl:if>
				<xsl:if test="//page/@language='中文'">结论</xsl:if>
			</title>
			<para>
				<xsl:apply-templates/>
			</para>
		</formalpara>
	</xsl:template>

<xsl:template match="concept">
	<emphasis>

<xsl:apply-templates/>
	</emphasis>


</xsl:template>


	<!-- ********************************************************************
       
         Default rule (do NOT delete)
       
       ******************************************************************** -->

	<xsl:template match="*">
		<xsl:copy>
			<xsl:for-each select="@*">
				<xsl:copy/>
			</xsl:for-each>
			<xsl:apply-templates/>
		</xsl:copy>
	</xsl:template>
</xsl:stylesheet><!-- Stylus Studio meta-information - (c) 2004-2007. Progress Software Corporation. 保留所有权力.
<metaInformation>
<scenarios/><MapperMetaTag><MapperInfo srcSchemaPathIsRelative="yes" srcSchemaInterpretAsXML="no" destSchemaPath="" destSchemaRoot="" destSchemaPathIsRelative="yes" destSchemaInterpretAsXML="no"/><MapperBlockPosition></MapperBlockPosition><TemplateContext></TemplateContext><MapperFilter side="source"></MapperFilter></MapperMetaTag>
</metaInformation>
-->